<?php

/**
 * 管理员信息
 *
 * @author suning <snsnsky@gmail.com>
 */
define('SITE_AUTH', 'admin-info');
require('../../../common.inc.php');

class userinfo extends \lib\core\AdminAction
{
    public function doDefault()
    {
        $user = $_SESSION['admin_info'];
        $menu = \Admin\Menu::getAllMenu();

        $page = $this->app->page();
        $page->value('user', $user);
        $page->value('menu', $menu);
        $page->value('auth', $_SESSION['admin_auth_list']);
        $page->output('admin/userinfo.tpl');
    }
}

$app->run();